import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { RefundService } from './refund.service'
import { RefundController } from './refund.controller'
import { RefundEntity } from './entities/refund.entity'
import { OrderEntity } from '../order/entities/order.entity'
import { TokenService } from '../auth/token.service'
import { AuthModule } from '../auth/auth.module'
import { PointsModule } from '../points/points.module'

@Module({
  imports: [
    TypeOrmModule.forFeature([RefundEntity, OrderEntity]),
    AuthModule,
    PointsModule
  ],
  controllers: [RefundController],
  providers: [RefundService, TokenService],
  exports: [RefundService, TokenService],
})
export class RefundModule { }